<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>GetGadgetItemColor</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">GetGadgetItemColor()</font></b></p>
<p><b>Syntax</b></p><blockquote>

Color = <font color="#006666"><b>GetGadgetItemColor</b></font>(#Gadget, Item, ColorType [, Column])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>



Returns a color setting from the specified gadget item. 

 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Gadget</i></td>
<td width="90%"> 
 
The gadget to use. 

 

</td></tr>
<tr><td><i>Item</i></td>
<td> 
 
The item from which to get the color. The first item in the gadget has index 0. 

 

</td></tr>
<tr><td><i>ColorType</i></td>
<td> 
 
The setting to get. This can be one of the following values: 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Gadget_FrontColor</font>: Item text
  <font color="#924B72">#PB_Gadget_BackColor</font> : Item background
</font></pre>

</td></tr>
<tr><td><i>Column (optional)</i></td>
<td> 
 
The column from which to get the color for gadgets that support multiple columns. 
The first column has index 0. The default is column 0. 

 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>



Returns the current color setting. This function returns the color that was 
previously set by <a href="setgadgetitemcolor.html">SetGadgetItemColor()</a>. If no custom color is set for the #Gadget and ColorType, 
the function returns -1. 

 

</blockquote><p><b>Remarks</b></p><blockquote>



This function is supported by the following gadgets: 
<br>
<br>
- <a href="listicongadget.html">ListIconGadget()</a> 
<br>
- <a href="treegadget.html">TreeGadget()</a> 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="setgadgetitemcolor.html">SetGadgetItemColor()</a>, <a href="getgadgetcolor.html">GetGadgetColor()</a>, <a href="setgadgetcolor.html">SetGadgetColor()</a> 

</Blockquote><p><b>Supported OS  </b><Blockquote>All</Blockquote></p><center>&lt;- <a href=getgadgetitemattribute.html>GetGadgetItemAttribute()</a> - <a href=index.html>Gadget Index</a> - <a href=getgadgetitemdata.html>GetGadgetItemData()</a> -&gt;



</body></html>